<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:richext="http://java.sun.com/jsf/composite/richext"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:a4j="http://richfaces.org/a4j"
	template="/resources/templates/pageTemplate.xhtml">
	<ui:define name="pageTitle">
		<ui:insert name="pageTitle" />
	</ui:define>
	<ui:define name="pageScripts">
		<ui:insert name="pageScripts" />
	</ui:define>
	<ui:define name="body">
		<rich:panel align="center">
			<f:facet name="header">
				<ui:insert name="formHeader" />
				<h:outputFormat value="#{nombreFormulario}" styleClass="formTitle" />
			</f:facet>
			<form>
				<h:panelGroup id="messagePanel" layout="block">
					<h:messages errorStyle="color: red" infoStyle="color: green"
						layout="table" />
				</h:panelGroup>
				<richext:spacer height="10" />
				<ui:insert name="formImputs" />
				<richext:spacer height="10" />
				<h:panelGrid align="center" columns="5">
					<h:commandButton action="#{mbean.confirmar}" 
									 value="Guardar" />
					<richext:spacer width="5" />
					<h:commandButton action="#{mbean.cancelar}" 
									 value="Cancelar" 
									 inmediate="true" />
					<richext:spacer width="5" />
					<h:commandButton inmediate="true" 
									 actionListener="#{mbean.limpiar}"
									 value="Limpiar" />
				</h:panelGrid>
			</form>
		</rich:panel>
	</ui:define>
</ui:composition>